<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@page import="java.net.URLDecoder"%>
<%@ page import="com.sz.common.SZUtility" %>
<%@page import="com.sz.business.dao.IBusinessDAO"%>
<%@ page import="com.sz.common.ICommonDAO" %>


<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";


String style1 = "width: 100px;text-align:right;font-size: 12px;";
String style2 = "font-size: 12px";
String style3 = "color: red;text-align:left;";
String style4 = "font-size: 12px;";
String style6 = "width: 300px";

String input_text = "width: 220px";
String input_text_gray = "width: 220px; color: gray";

String title = "商家信息";
if(title != null) {
	title = URLDecoder.decode(title, "UTF-8");
	
}

ServletContext servletContext = request.getSession().getServletContext(); 
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);

ICommonDAO oCommDao = (ICommonDAO) context.getBean("CommonDAO");
IBusinessDAO oBusiness = (IBusinessDAO) context.getBean("BusinessDAO");


//区域
String create_manager = request.getSession().getAttribute("userid").toString();
String region_id = request.getSession().getAttribute("regionid").toString();
ICommonDAO dao = (ICommonDAO) context.getBean("CommonDAO");
String Region_sql = "select REGION_ID, REGION_NAME from region";
List list_Area = dao.queryForList(Region_sql);


//根据登陆区域查商圈
StringBuffer buf = new StringBuffer();
buf.delete(0, buf.length());
buf.append("select group_id, name from business_group");
List list_business_group = oCommDao.queryForList(buf.toString());

//菜系
String Course_Serial_Sql = "select serial_id,name from tck.course_serial";
List Course_Serial_Area = oCommDao.queryForList(Course_Serial_Sql);



Map<Object, Object> param = new HashMap<Object, Object>();
String business_id = request.getParameter("business_id");
param.put("BUSINESS_ID", business_id);

List listBusiness = oBusiness.ModifyBusinessDetail(param);

Map mapBusiness = new HashMap(); 
if(listBusiness.size() > 0) 
{
	mapBusiness = (Map)listBusiness.get(0);
}



String RegionID = SZUtility.toString(mapBusiness.get("REGION_ID"));
String GroupID = SZUtility.toString(mapBusiness.get("GROUP_ID"));
String InfoSource = SZUtility.toString(mapBusiness.get("INFO_SOURCE"));

String CheckStatus = SZUtility.toString(mapBusiness.get("CHECK_STATUS"));
String WorkStatus = SZUtility.toString(mapBusiness.get("WORK_STATUS"));
String PreorderFlag = SZUtility.toString(mapBusiness.get("PREORDER_FLAG"));
String X = "经度:" + SZUtility.toString(mapBusiness.get("X"));
String Y = "纬度:" + SZUtility.toString(mapBusiness.get("Y"));
String PublishState = SZUtility.toString(mapBusiness.get("PUBLISH_STATE"));
String RedFlag = SZUtility.toString(mapBusiness.get("RED_FLAG"));//推荐状态
String Name = SZUtility.toString(mapBusiness.get("NAME"));
String NameEnglish = SZUtility.toString(mapBusiness.get("NAME_ENGLISH"));
String  Alias = SZUtility.toString(mapBusiness.get("ALIAS"));
String LoginName = SZUtility.toString(mapBusiness.get("LOGIN_NAME"));
String Tel1 = SZUtility.toString(mapBusiness.get("TEL1"));
String Adress = SZUtility.toString(mapBusiness.get("ADDRESS"));
String PostCode = SZUtility.toString(mapBusiness.get("POST_CODE"));
String CrossRoad = SZUtility.toString(mapBusiness.get("CROSSROAD"));
String LandMark = SZUtility.toString(mapBusiness.get("LANDMARK"));
String Traffic = SZUtility.toString(mapBusiness.get("TRAFFIC"));
String Descript = SZUtility.toString(mapBusiness.get("DESCRIPT"));
String Email = SZUtility.toString(mapBusiness.get("EMAIL"));
String NetAddress = SZUtility.toString(mapBusiness.get("NET_ADDRESS"));
String Fax = SZUtility.toString(mapBusiness.get("FAX"));
String MainUser = SZUtility.toString(mapBusiness.get("MAIN_USER"));
String MainUserTel = SZUtility.toString(mapBusiness.get("MAIN_USER_TEL"));
String SerialID = SZUtility.toString(mapBusiness.get("SERIAL_ID"));
String SpecialCourse = SZUtility.toString(mapBusiness.get("SPECIAL_COURSE"));
String Flavor = SZUtility.toString(mapBusiness.get("FLAVOUR"));
String AvgFee = SZUtility.toString(mapBusiness.get("AVG_FEE"));
String LowFee = SZUtility.toString(mapBusiness.get("LOW_FEE"));
String Discount = SZUtility.toString(mapBusiness.get("DISCOUNT"));
String RoomFlag = SZUtility.toString(mapBusiness.get("ROOM_FLAG"));
String PreorderDescrip = SZUtility.toString(mapBusiness.get("PREORDER_DESCRIP"));
String Reserve = SZUtility.toString(mapBusiness.get("RESERVE"));
String RoomNum = SZUtility.toString(mapBusiness.get("ROOM_NUM")) + "间";
String WorkTime = SZUtility.toString(mapBusiness.get("WORKTIME"));
String Devices = SZUtility.toString(mapBusiness.get("DEVICES"));
String CardTypeInfo = SZUtility.toString(mapBusiness.get("CARD_TYPE_INFO"));
String CreditCardFlag = SZUtility.toString(mapBusiness.get("CREDITCARD_FLAG"));
String CousumeCardFlag = SZUtility.toString(mapBusiness.get("CONSUMECARD_FLAG"));
String ServiceDescrip = SZUtility.toString(mapBusiness.get("SERVICE_DESCRIP"));
String ParkDescrip = SZUtility.toString(mapBusiness.get("PARK_DESCRIP"));
String RoomDescrip = SZUtility.toString(mapBusiness.get("ROOM_DESCRIP"));
String OutDescrip = SZUtility.toString(mapBusiness.get("OUT_DESCRIP"));
String Area = SZUtility.toString(mapBusiness.get("AREA"));
String Environment = SZUtility.toString(mapBusiness.get("ENVIRONMENT"));
String Device = SZUtility.toString(mapBusiness.get("DEVICES"));
String KeyWords = SZUtility.toString(mapBusiness.get("KEYWORDS"));
String CommentText = SZUtility.toString(mapBusiness.get("COMMENT_TEXT"));
String DepositDescrip = SZUtility.toString(mapBusiness.get("DEPOSIT_DESCRIP"));
String CheckOrderMode = SZUtility.toString(mapBusiness.get("CHECK_ORDER_MODE"));
String CheckContact = SZUtility.toString(mapBusiness.get("CHECK_CONTACT"));
String CheckTel = SZUtility.toString(mapBusiness.get("CHECK_TEL"));
String CheckNotice = SZUtility.toString(mapBusiness.get("CHECK_NOTICE"));
//String ParkDescrip = SZUtility.toString(mapBusiness.get("PARK_DESCRIP"));
//String ParkDescrip = SZUtility.toString(mapBusiness.get("PARK_DESCRIP"));


//String demand_time_d = demand_time_str.substring(0,10);
//String demand_time_t = demand_time_str.substring(11,13);
//String status = SZUtility.toString(mapBusiness.get("STATUS"));
//String status_name = SZUtility.toString(mapBusiness.get("STATUS_NAME"));

%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="<%= request.getContextPath() %>/css/main.css" rel="stylesheet" type="text/css" />
		<base href="<%=basePath%>" target="_self">
		<title><%=title%></title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="">
		<meta http-equiv="description" content="商家信息" >
	</head>
	
	<body>
		<script type="text/javascript" src="js/calendar.js"></script>
		<script type="text/javascript" src="js/utility.js"></script>	
		
	  	<form name="addBusiness_form"  action="updateBusiness.exec" method="post" onsubmit="return check()"> 
	  	
	  	<table width="100%" height="50px" border="0" cellpadding="0" cellspacing="0">
	  	<tr>
		  	<td class="title0">修改商家信息<br></td>
		</tr>
	  	</table>
	  	
	  	 <table width="100%" border="0" >
	  	 
	  	 
	  	<tr>
	  		<th colspan="6" align="left">基本信息</th>
	  	</tr>
  		<tr>
			<td style="<%=style1%>">行政区域<br></td>
	        <td>
		  		<select id="business_region_id" name="business_region_id" style="width:156px">
				   <%
				     boolean b = false;
				   	 String value = null;
				     String text = null;
				   %>
				   <%
				   for(int n = 0; n < list_Area.size(); ++n)
				   {    
					   Map map = (Map)list_Area.get(n);
					   value = map.get("REGION_ID").toString();
					   text = map.get("REGION_NAME").toString();
					   b = value.equals(RegionID);
				   %>
				   <option <%if(b){%> selected="selected" <%}%>
				     value="<%=value%>"><%=text%>
				   </option>
				   <%}%>				   
				</select>
			    <font style="<%=style3%>">*</font>
		  	</td>  	
		  	<td style="<%=style1%>">商圈 &nbsp;<br></td>
		  	<td>
				<select id="business_group_id" name="business_group_id"> 
			  		<%
				      b = false;
				   	  value = null;
				      text = null;
				    %>
			  		<%
					 for(int i = 0; i < list_business_group.size(); ++i) {
						Map map = (Map)list_business_group.get(i);
						value = map.get("GROUP_ID").toString();
						text = map.get("NAME").toString();	
			            b = value.equals(GroupID);											
					 %>
					   <option <%if(b){%> selected="selected" <%}%>
				     value="<%=value%>"><%=text%>
				   </option>
				   <%}%>				   
				</select>
		  		<font style="<%=style3%>">*</font>
		  	</td>
		    <td style="<%=style1%>">来源 &nbsp;<br></td>
		  	<td>
		  	  <select id="Business_InfoSource" name="Business_InfoSource" style="width:156px">
				  <option <%if(InfoSource.equals("1")){%> selected="selected" <%}%>
				     value="1">合作商
				   </option>
				   
				  <option <%if(InfoSource.equals("2")){%> selected="selected" <%}%>
				     value="2">普通商户
				   </option>
			   </select>
			   <font style="<%=style3%>">*</font>
	   		</td>	  		
	  	</tr>
	  	
  		<tr>
  			<td style="<%=style1%>">签约状态&nbsp</td>
  			<td>
		  	  <select id="Business_CheckStatus" name="Business_CheckStatus" style="width:156px">
				  <option <%if(CheckStatus.equals("1")){%> selected="selected" <%}%>
				     value="1">已签约
				   </option>
				   
				  <option <%if(CheckStatus.equals("0")){%> selected="selected" <%}%>
				     value="0">未签约
				   </option>		  	     
			   </select>
			   <font style="<%=style3%>">*</font>
	   		</td>
	   		
	  		<td style="<%=style1%>">营业状态&nbsp</td>
	  		<td>
	  			<select id="Business_WorkStatus" name="Business_WorkStatus" style="width:156px">
					<option <%if(WorkStatus.equals("1")){%> selected="selected" <%}%>
						value="1">正常
					</option>
					<option <%if(WorkStatus.equals("2")){%> selected="selected" <%}%>
						value="2">暂停营业
					</option>			   
					<option <%if(WorkStatus.equals("0")){%> selected="selected" <%}%>
						value="0">关闭
					</option>		   
				</select>
				<font style="<%=style3%>">*</font>
		   	</td>

  			<td style="<%=style1%>">预定状态&nbsp</td> 
  			<td>
		  	  <select id="Business_PreorderFlag" name="Business_PreorderFlag" style="width:156px">
					<option <%if(PreorderFlag.equals("1")){%> selected="selected" <%}%>
						value="1">可预定
					</option>
					<option <%if(PreorderFlag.equals("0")){%> selected="selected" <%}%>
						value="0">不可预定
					</option>   
			   </select>
			   <font style="<%=style3%>">*</font>
	   		</td>  	
  		</tr>
  		
  		<tr>
			<td style="<%=style1%>">公布状态&nbsp</td>
			<td>
		  	  <select id="Business_PublishState" name="Business_PublishState" style="width:156px">
					<option <%if(PublishState.equals("1")){%> selected="selected" <%}%>
						value="1">公布
					</option>
					<option <%if(PublishState.equals("0")){%> selected="selected" <%}%>
						value="0">不公布
					</option> 	   
			   </select>
	   		</td> 
	   		

			<td style="<%=style1%>">推荐状态&nbsp</td>
			<td>
		  	  <select id="Business_RedFlag" name="Business_RedFlag" style="width:156px">
					<option <%if(RedFlag.equals("0")){%> selected="selected" <%}%>
						value="0">黑名单
					</option>
					<option <%if(RedFlag.equals("1")){%> selected="selected" <%}%>
						value="1">红旗
					</option> 
					<option <%if(RedFlag.equals("2")){%> selected="selected" <%}%>
						value="2">正常
					</option>
					<option <%if(RedFlag.equals("3")){%> selected="selected" <%}%>
						value="3">白旗
					</option>
			   </select>
			   <font style="<%=style3%>">*</font>
	   		</td>
	   		
			<td style="<%=style1%>">GPS&nbsp</td>
		  	<td>
				<input type="text" id="Business_X" name="Business_X"  value="<%=X%>" style="<%=style2%>">
				<input type="text" id="Business_Y" name="Business_Y"  value="<%=Y%>" style="<%=style2%>">
				<font style="<%=style3%>">*</font>
		  	</td> 	
	 	</tr>
	  	
	  	<tr>
  			<td style="<%=style1%>">商家名称&nbsp<br></td>
	  		<td>
	  			<input type="text" id="Business_Name" name="Business_Name" value="<%=Name%>" style="<%=style2%>" >	
	  			<font style="<%=style3%>">*</font>
	  		</td>
  			<td style="<%=style1%>">英文名&nbsp</td>
  			<td>
  				<input type="text" id="Business_NameEnglish" name="Business_NameEnglish" value="<%=NameEnglish%>" style="<%=style2%>" >
  			</td>
  			<td style="<%=style1%>">别名/简称&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Alias" name="Business_Alias" value="<%=Alias%>" style="<%=style2%>" >
  			</td>  	
	  </tr>
	  
	  <tr>
  			<td style="<%=style1%>">注册名&nbsp</td>
  			<td>
  				<input type="text" id="Business_LoginName" name="Business_LoginName" value="<%=LoginName%>" style="<%=style2%>" >	
  				<font style="<%=style3%>">*</font>  
  			</td>
  			<td style="<%=style1%>">订餐电话&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Tel1" name="Business_Tel1" value="<%=Tel1%>" style="<%=style2%>" >
  				<font style="<%=style3%>">*</font>
  			</td>
  			<td style="<%=style1%>">地址&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Adress" name="Business_Adress" value="<%=Adress%>" style="<%=style2%>" >
   				<font style="<%=style3%>">*</font>
  			</td>  	
	  </tr>
	
	  <tr>
			<td style="<%=style1%>">邮编&nbsp</td>
			<td>
				<input type="text" id="Business_PostCode" name="Business_PostCode"  value="<%=PostCode%>" style="<%=style2%>" >	   
			</td>
			<td style="<%=style1%>">交叉路口&nbsp</td>
			<td>
				<input  type="text" id="Business_CrossRoad" name="Business_CrossRoad"  value="<%=CrossRoad%>" style="<%=style2%>" >
			</td>
			<td style="<%=style1%>">地标&nbsp</td>
			<td>
				<input  type="text" id="Business_LandMark" name="Business_LandMark"  value="<%=LandMark%>" style="<%=style2%>" >
			</td>  	
	  </tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">缩略图&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_Photo" name="Business_Photo" value="图片暂无"  readonly="readonly" style="<%=style2%>" >	
	  			</td>
	  			<td style="<%=style1%>">交通路线&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Traffic" name="Business_Traffic" value="<%=Traffic%>" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">企业介绍&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Descript" name="Business_Descript" value="<%=Descript%>" style="<%=style2%>" >

	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">Email&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_Email" name="Business_Email" value="<%=Email%>" style="<%=style2%>" >  
	  			</td>
	  			<td style="<%=style1%>">网址&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_NetAddress" name="Business_NetAddress" value="<%=NetAddress%>" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">传真&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Fax" name="Business_Fax" value="<%=Fax%>" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">负责人&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_MainUser" name="Business_MainUser" value="<%=MainUser%>" style="<%=style2%>" >
	  				<font style="<%=style3%>">*</font>	   
	  			</td>
	  			<td style="<%=style1%>">负责人电话&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_MainUser_Tel" name="Business_MainUser_Tel"  value="<%=MainUserTel%>" style="<%=style2%>" >
	  				<font style="<%=style3%>">*</font>
	  			</td> 	
	  			<td style="<%=style1%>">商家ID&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_ID" name="Business_ID"  value="<%=business_id%>" style="<%=style2%>" >
	  				<font style="<%=style3%>">*</font>
	  			</td> 
	  			
	  		</tr>	  	
	  	
	  	<tr>
	  		<th colspan="6" align="left">服务信息</th>
  			<tr>
  				<td style="<%=style1%>">经营菜系&nbsp</td>
		  	<td>
				<select id="course_serial_id" name="course_serial_id" style="width:156px"> 
			  		<option value="">请选择</option> 
			  		<%
			  		  b = false;
				   	  value = null;
				      text = null;
			  		%>
			  		<%
					 for(int i = 0; i < Course_Serial_Area.size(); ++i) {
						Map map = (Map)Course_Serial_Area.get(i);
						value = map.get("SERIAL_ID").toString();
						text = map.get("NAME").toString();	
						b = value.equals(SerialID);											
					 %>
					 <option <%if(b){%> selected="selected" <%}%>
				     value="<%=value%>"><%=text%>
				   </option>
				   <%}%>				   
				</select>
		  		<font style="<%=style3%>">*</font>
  			<td style="<%=style1%>">招牌菜&nbsp</td>
  			<td>
  				<input  type="text" id="Business_SpecialCourse" name="Business_SpecialCourse" value="<%=SpecialCourse%>" style="<%=style2%>" >
  			</td>
  			<td style="<%=style1%>">风味&nbsp</td>
  			<td>
  				<input  type="text" id="Business_Flavor" name="Business_Flavor"  value="<%=Flavor%>" style="<%=style2%>" >
  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">人均消费&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_AvgFee" name="Business_AvgFee"  value="<%=AvgFee%>" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">最低消费&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_LowFee" name="Business_LowFee"  value="<%=LowFee%>" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">折扣&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Discount" name="Business_Discount"  value="<%=Discount%>" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">包间&nbsp</td>	
	  			<td>		
		  			<select id="Business_RoomFlag" name="Business_RoomFlag" style="width:156px">
						<option <%if(RoomFlag.equals("1")){%> selected="selected" <%}%>
							value="1">有包间
						</option>
						<option <%if(RoomFlag.equals("0")){%> selected="selected" <%}%>
							value="0">无包间
						</option>		   
				   </select>
				   <font style="<%=style3%>">*</font>
			   </td>
	  			<td style="<%=style1%>">预定要求&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_PreorderDescrip" name="Business_PreorderDescrip" value="<%=PreorderDescrip%>" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">预定保留时间&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Reserve" name="Business_Reserve" value="<%=Reserve%>" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">包间描述&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_RoomDescrip" name="Business_RoomDescrip" value="<%=RoomDescrip%>" style="<%=style6%>" >
	  			</td> 
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">营业时间&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_WorkTime" name="Business_WorkTime" value="<%=WorkTime%>" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">包间数&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_RoomNum" name="Business_RoomNum"  value="<%=RoomNum%>" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">设施&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Devices" name="Business_Devices" value="<%=Devices%>" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">是否接受信用卡&nbsp</td>
	  			<td>		
		  			<select id="Business_CreditCardFlag" name="Business_CreditCardFlag" style="width:156px">
						<option <%if(CreditCardFlag.equals("1")){%> selected="selected" <%}%>
							value="1">接受
						</option>
						<option <%if(CreditCardFlag.equals("0")){%> selected="selected" <%}%>
							value="0">不接受
						</option>	   
				   </select>
				   <font style="<%=style3%>">*</font>
			   </td>

	  			<td style="<%=style1%>">是否接受消费卡&nbsp</td>
	  			<td>		
		  			<select id="Business_CousumeCardFlag" name="Business_CousumeCardFlag" style="width:156px">
						<option <%if(CousumeCardFlag.equals("1")){%> selected="selected" <%}%>
							value="1">接受
						</option>
						<option <%if(CousumeCardFlag.equals("0")){%> selected="selected" <%}%>
							value="0">不接受
						</option>	   
				   </select>
				   <font style="<%=style3%>">*</font>
			   </td>
	  			
	  			<td style="<%=style1%>">卡类型说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_CardTypeInfo" name="Business_CardTypeInfo" value="<%=CardTypeInfo%>" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">服务说明&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_ServiceDescrip" name="Business_ServiceDescrip" value="<%=ServiceDescrip%>" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">停车说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_ParkDescrip" name="Business_ParkDescrip" value="<%=ParkDescrip%>" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">外卖说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_OutDescrip" name="Business_OutDescrip"  value="<%=OutDescrip%>" style="<%=style2%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">营业面积&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_Area" name="Business_Area" value="<%=Area%>" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">环境&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_Environment" name="Business_Environment" value="<%=Environment%>" style="<%=style2%>" >
	  			</td>	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">关键字&nbsp</td>
	  			<td>
	  				<input type="text" id="Business_KeyWords" name="Business_KeyWords" value="<%=KeyWords%>" style="<%=style2%>" >	   
	  			</td>
	  			<td style="<%=style1%>">备注&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_CommentText" name="Business_CommentText" value="<%=CommentText%>" style="<%=style2%>" >
	  			</td>
	  			<td style="<%=style1%>">订金说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="Business_DepositDescrip" name="Business_DepositDescrip"  value="<%=DepositDescrip%>" style="<%=style2%>" >
	  			</td>  	
	  		</tr>	
	  		
	  		
	
	  	<tr>
	  		<th colspan="6" align="left">核单信息</th>
	  	</tr>
 		 <tr>
 			<td style="<%=style1%>">核单模式&nbsp</td>
			<td>		
	  			<select id="Business_CheckOrderMode" name="Business_CheckOrderMode" style="width:156px">
					<option <%if(CheckOrderMode.equals("1")){%> selected="selected" <%}%>
						value="1">已核单
					</option>
					<option <%if(CheckOrderMode.equals("0")){%> selected="selected" <%}%>
						value="0">未核单
					</option>	   
			   </select>
			   <font style="<%=style3%>">*</font>
		   </td>
 			<td style="<%=style1%>">核单人&nbsp</td>
 			<td>
 				<input  type="text" id="Business_CheckContact" name="Business_CheckContact" value="<%=CheckContact%>" style="<%=style2%>" >
 				 <font style="<%=style3%>">*</font>
 			</td>
 			<td style="<%=style1%>">核单人电话&nbsp</td>
 			<td>
 				<input  type="text" id="Business_CheckTel" name="Business_CheckTel"  value="<%=CheckTel%>" style="<%=style2%>" >
 				 <font style="<%=style3%>">*</font>
 			</td>  	
 		</tr>
	  	<tr>
		  	<td style="<%=style1%>"></td>
		  	<td>
		  		<input type="submit" value="修改商家" style="width: 80px;height: 40px;">
		  	</td>
	  	</tr>	  		  		  	 
	 	
	  	</table>
	  	
	  	<br/> 
  	</form>
 	
  	
  	<SCRIPT LANGUAGE="JavaScript">
  			function check() 
  			{
  				var tmp;

  				
   			 	tmp = document.getElementById("business_region_id").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择行政区域");
  	  				return false;
  				} 
  				
  				tmp = document.getElementById("business_group_id").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择商圈");
  	  				return false;
  				} 		
  				
  				tmp = document.getElementById("Business_InfoSource").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择来源");
  	  				return false;
  				} 
  				
  				tmp = document.getElementById("Business_CheckStatus").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择签约状态");
  	  				return false;
  				}
  				tmp = document.getElementById("Business_PreorderFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择预定状态");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_RedFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择推荐状态");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_LoginName").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择注册名");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_Adress").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请选择地址");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_MainUser").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：负责人");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("business_name").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("基本信息：请输入商家名称");
  	  				return false;
  				}
  				
  			//	tmp = document.getElementById("business_tel1").value;
  			//	if(IsInteger(tmp)==false) {
  	  		//		alert("基本信息：请输入正确的商家电话号码,可以包括()、- 字符");
  	  		//		return false;
  			//	}
  				
  				
  				tmp = document.getElementById("course_serial_id").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择经营菜系");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_RoomFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择包间");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_CreditCardFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择信用卡是否接受");
  	  				return false;
  				}
  				
  				tmp = document.getElementById("Business_CousumeCardFlag").value;
  				if(IsEmpty(tmp)==true) {
  	  				alert("服务信息：请选择消费卡是否接受");
  	  				return false;
  				}
  				
  	  		    tmp = document.getElementById("Business_CheckOrderMode").value;
	  			if(IsEmpty(tmp)==true) {
	  	  			alert("核单信息：请选择核单模式");
	  	  			return false;
	  			}
	  			
	  			tmp = document.getElementById("Business_CheckContact").value;
	  			if(IsEmpty(tmp)==true) {
	  	  			alert("核单信息：请输入核单人");
	  	  			return false;
	  			}			
  				
  				tmp = document.getElementById("Business_CheckTel").value;
	  			if(IsInteger(tmp)==false) {
	  	  			alert("核单信息：请输入核单人电话");
	  	  			return false;
	  			}
  				
  				//数字检查//////////////////////////////////////////////////////////////////
  				tmp = document.getElementById("Business_X").value;
  				if(IsEmpty(tmp)==false)
  				{	  			
  					if(IsNumeric(tmp)==false) 
  					{
	  	  			alert("请正确输入经度，只能为数字");
	  	  			return false;
	  				}
	  			}

	  			
  				tmp = document.getElementById("Business_Y").value;
  				if(IsEmpty(tmp)==false)
  				{
  					if(IsNumeric(tmp)==false) {
	  	  			alert("请正确输入纬度，只能为数字");
	  	  			return false;
	  			    }
  				}
	  			
	  			
  				tmp = document.getElementById("Business_PostCode").value;
  				if(IsEmpty(tmp)==false)
  				{
  					if(IsInteger(tmp)==false) {
	  	  			alert("请正确输入邮编，只能为数字");
	  	  			return false;
	  				}
  				}
	
	  			
	  			tmp = document.getElementById("Business_MainUser_Tel").value;
	  			if(IsInteger(tmp)==false) {
	  	  			alert("请正确输入负责人电话，只能为数字");
	  	  			return false;
	  			}	
	  			
	  		//	tmp = document.getElementById("Business_AvgFee").value;
	  		//	if(IsEmpty(tmp)==false)
	  		//	{
		  	//		if(IsInteger(tmp)==false) {
		  	//  			alert("请正确输入平均消费，只能为数字");
		  	//  			return false;
		  	//		}	
	  		//	}
	  			
	  		//	tmp = document.getElementById("Business_LowFee").value;
	  		//	if(IsEmpty(tmp)==false)
	  		//	{
		  	//		if(IsInteger(tmp)==false) {
		  	//  			alert("请正确输入最低消费，只能为数字");
		  	// 			return false;
		  	//		}	
	  		//	}

  				
  			 //   tmp = document.getElementById("Business_RoomNum").value;
  			 //  if(IsEmpty(tmp)==false)
  			 //	{
	  	  	 //		if(IsInteger(tmp)==false) {
		  	 //			alert("请正确输入包间数，只能为数字");
		  	 //			return false;
		  	 //		}				
  			 //	}

  				
  		        tmp = document.getElementById("Business_CheckTel").value;
	  			if(IsInteger(tmp)==false) {
	  	  			alert("请正确输入核单人电话，只能为数字");
	  	  			return false;
	  			}
  			}
  	</SCRIPT>
	</body>
</html>
